/*
** map.h for  in /u/all/tessa_b/public/trantor
** 
** Made by arnaud1 tessa
** Login   <tessa_b@epitech.net>
** 
** Started on  Tue Jul  5 13:49:31 2011 arnaud1 tessa
** Last update Thu Jul  7 05:03:28 2011 arnaud1 tessa
*/

#ifndef		__MAP_H__
#define		__MAP_H__

#include	"../case/case.h"
#include	"../trantorian/trantorian.h"

typedef struct	s_map
{
  int		x;
  int		y;
  t_case	**cases;
  t_trantorian	**trantorians;
  int		nb_trantorians;
}		t_map;

void		map_init(t_map *map, int x, int y, int max_trantorians);
void		map_generate_resources(t_map *map, int max_trantorians);
void		map_add_trantorian(t_map *map, t_trantorian *tr);
void		map_remove_trantorian(t_map *map, t_trantorian *tr);
t_resources	*map_resources_at_pos(t_map *map, int x, int y);
t_trantorian	**map_trantorians_at_pos(t_map *map, int x, int y);
int		map_nb_trantorians_at_pos(t_map *map, int x, int y);
void		map_display(t_map *map);

#endif		/*__MAP_H__*/
